<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"> 
    <title>GoEasy 测试</title>
</head>
<script type="text/javascript" src="https://cdn.goeasy.io/goeasy.js"></script>
<body>
    GoEasy index 页面
</body>

<script type="text/javascript">
	var goEasy = new GoEasy({appkey: 'BS-fd3477a41ca6471b89cbd69eec946442'});
	goEasy.subscribe({
		channel:'demo_channel',
		onMessage: function(message){
			alert('收到：'+message.content);
		}
	});
 </script>
 
</html>